﻿using System;
using System.Runtime.InteropServices;

namespace SilverlightViewport.Common.Interop
{
    [ComImport, Guid("37D84F60-42CB-11CE-8135-00AA004BB851"), 
    InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface IPersistPropertyBag : IPersist
    {
        [PreserveSig]
        new int GetClassID(out Guid pClassID);
        [PreserveSig]
        int InitNew();
        [PreserveSig]
        int Load([In, MarshalAs(UnmanagedType.Interface)] IPropertyBag pPropBag, [In, MarshalAs(UnmanagedType.Interface)] IErrorLog pErrorLog);
        [PreserveSig]
        int Save([In, MarshalAs(UnmanagedType.Interface)] IPropertyBag pPropBag, [In] int fClearDirty, [In] int fSaveAllProperties);
    }
}
